 //import RestUtil from "@/utils/rest-util";
 import testData from "@/common/test/module.json";
 export default class PermissionApi{
    private vm:any;
    constructor(vm:any){
        this.vm=vm;
    }
    public static async getPermissionList(params:any){
        //let result:any=await RestUtil.post("/system/tool/gen/list",params);
        const rows=testData.moduleData;
        const result:any={
                rows:rows,
                pageInfo:{
                    total:11
                }
         }
        return result;
    }
    //根据表id获取表的基础信息
    public static async getTableColumnDetial(params:any){
            //let result:any=await RestUtil.post("/system/tool/gen/column/list",params);
            const allColumnDatas:Array<any>=testData.columnData;
            const modelColumnDatas=allColumnDatas.filter(item=>item.moduleid==params.row.id);
            return modelColumnDatas;
    }
}